package com.wolf.service.impl;

import com.wolf.pojo.WlSellerExample;
import com.wolf.pojo.Wl_seller;
import com.wolf.repository.Wl_sellerMapper;
import com.wolf.service.Wl_sellerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class Wl_sellerServiceImpl implements Wl_sellerService {
    @Autowired
    Wl_sellerMapper wl_sellerMapper;

    @Override
    public int countByExample(WlSellerExample example) {
        return wl_sellerMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(WlSellerExample example) {
        return wl_sellerMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(String id) {
        return wl_sellerMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Wl_seller record) {
        return wl_sellerMapper.insert(record);
    }

    @Override
    public int insertSelective(Wl_seller record) {
        return wl_sellerMapper.insertSelective(record);
    }

    @Override
    public List<Wl_seller> selectByExample(WlSellerExample example) {
        return wl_sellerMapper.selectByExample(example);
    }

    @Override
    public Wl_seller selectByPrimaryKey(String id) {
        return wl_sellerMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByExampleSelective(Wl_seller record, WlSellerExample example) {
        return wl_sellerMapper.updateByExampleSelective(record,example);
    }

    @Override
    public int updateByExample(Wl_seller record, WlSellerExample example) {
        return wl_sellerMapper.updateByExample(record,example);
    }

    @Override
    public int updateByPrimaryKeySelective(Wl_seller record) {
        return wl_sellerMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Wl_seller record) {
        return wl_sellerMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<Wl_seller> getall() {
        return wl_sellerMapper.getall();
    }

    @Override
    public int updateStatus(String id, String status) {
        return wl_sellerMapper.updateStatus(id,status);
    }

    @Override
    public List<Wl_seller> fuzzQuery(String name, String status) {
        return wl_sellerMapper.fuzzQuery(name,status);
    }
}
